package com.example.sendmessage.server.core;

import java.io.Serializable;

/**
 * 消息关键信息体
 */
public class BasicProperties implements Serializable {
    // 消息的唯一id
    private String messageId;
    // 对应交换机绑定关键字
    private String routingKey;
    // 消息是否持久化 1表示不持久 2表示持久
    private int deliverMode = 1;

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public int getDeliverMode() {
        return deliverMode;
    }

    public void setDeliverMode(int deliverMode) {
        this.deliverMode = deliverMode;
    }
}
